// 属性上使用表达式
import { Button, StyleSheet } from 'react-native';

export default function App() {
  const title = '点我';
  const showMsg = () => {};
  return (
    <>
      {/* 禁用按钮组件属性disabled ，默认是false*/}
      <Button title={title} onPress={showMsg} />
      <Button title={title} onPress={showMsg} />
    </>
  );
}

const styles = StyleSheet.create({
  title: {
    fontSize: 30,
    color: 'blue',
  },
});
